<template>
  <div class="singer-msg" v-if="Object.keys(desc).length!==0">
    <!-- 描述 -->
    <div class="desc">
      <h2>简述：</h2>
      <p>{{desc.briefDesc}}</p>
    </div>
    <!-- 作品 -->
    <div class="works" v-for="(item,index) in desc.introduction" :key="index">
      <h2>{{item.ti}}</h2>
      <p>{{item.txt}}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SingerMsg',
  props: {
    desc: {
      type: Object,
      default() {
        return {}
      }
    }
  }
}
</script>

<style lang="less" scoped>
div {
  margin: 20px 0;
  line-height: 1.4;
  h2 {
    margin: 20px 0;
  }
  p {
    font-size: 18px;
  }
}
</style>